@ECHO OFF

set localPath=%CD%
set localPath=%localPath:\=\\%
set regFile=%CD%\ShellNavigator.reg

echo Windows Registry Editor Version 5.00 >%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator] >>%regFile%
echo "subcommands"="" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell] >>%regFile%

REM -open-

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd1] >>%regFile%
echo "MUIVerb"="Open Solution" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd1\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" OpenSolution \"%%1\"" >>%regFile%

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd2] >>%regFile%
echo "MUIVerb"="Open Project" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd2\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" OpenProject \"%%1\"" >>%regFile%

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd3] >>%regFile%
echo "MUIVerb"="Open File" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd3\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" OpenFile \"%%1\"" >>%regFile%

REM -clipboard-

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd4] >>%regFile%
echo "MUIVerb"="Full file path to clipboard" >>%regFile%
echo "CommandFlags"=dword:00000020 >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd4\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" CopyFile \"%%1\"" >>%regFile%

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd5] >>%regFile%
echo "MUIVerb"="Full project path to clipboard" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd5\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" CopyProject \"%%1\"" >>%regFile%

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd6] >>%regFile%
echo "MUIVerb"="Assembly name to clipboard" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd6\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" CopyAssembly \"%%1\"" >>%regFile%

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd7] >>%regFile%
echo "MUIVerb"="Full solution path to clipboard" >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd7\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" CopySolution \"%%1\"" >>%regFile%

REM --

echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd8] >>%regFile%
echo "MUIVerb"="Open in ShellNavigator" >>%regFile%
echo "CommandFlags"=dword:00000020 >>%regFile%
echo [HKEY_CLASSES_ROOT\*\shell\ShellNavigator\Shell\Cmd8\command] >>%regFile%
echo @="\"%localPath%\\ShellNavigator.Client.exe\" \"%%1\"" >>%regFile%

%regFile%

del %regFile%